<?php if($this->_tpl_vars['updirtype']==1){ ?>
<div class="infolist" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_updir'] ?>">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"></td>
			<td width="35%" id="left" class="padding-left3"><img src="templates/images/fileicon/dir.png"> /<?php echo $this->_tpl_vars['dirlist'] ?></td>
			<td width="10%">
			<td width="25%"></td>
			<td width="25%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit3" id="center" onclick="javascript:onlist('<?php echo $this->_tpl_vars['uploadurl'] ?>');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_updir'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_updir'] ?></a></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<?php } ?>
<input type="hidden" name="filepath" id="filepath" value="<?php echo $this->_tpl_vars['dirname'] ?>">
<?php if(count($this->_tpl_vars['array']) > 0){ ?>
<?php if (count($this->_tpl_vars['array'])>0){$divid_list=1;for($list=0;$list<count($this->_tpl_vars['array']); $list++){?>
<div class="infolist gallery clearfix" title="<?php echo $this->_tpl_vars['array'][$list]['loadurl2'] ?>">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"><input type="checkbox" name="selectinfoid" value="<?php echo $this->_tpl_vars['array'][$list]['filename'] ?>"></td>
			<td width="35%" id="left" class="padding-left3"><img src="templates/images/fileicon/<?php echo $this->_tpl_vars['array'][$list]['type'] ?>.png"> <?php echo $this->_tpl_vars['array'][$list]['filename'] ?></td>
			<td width="10%" id="right" class="padding-right3"><?php if($this->_tpl_vars['array'][$list]['bottype']!='dir'){ ?><?php echo $this->format_size($this->_tpl_vars['array'][$list]['size'],1) ?><?php } ?></td>
			<td width="25%"><?php echo $this->timeformat($this->_tpl_vars['array'][$list]['time'],3) ?></td>
			<td width="25%" id="infotype">
				<?php if($this->_tpl_vars['array'][$list]['picerrid']==1){ ?>
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<?php if($this->_tpl_vars['array'][$list]['bottype']=='dir'){ ?>
					<tr>
						<td><a class="setedit3" onclick="javascript:onlist('<?php echo $this->_tpl_vars['array'][$list]['loadurl'] ?>');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_botton'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_opendir'] ?></a></td>
						<?php if($this->powercheck(0,123)==true ){ ?>
						<td class="padding-left3"><a class="setedit" onclick="javascript:windowsdig('<?php echo $this->_tpl_vars['array'][$list]['filename'] ?><?php echo $this->_tpl_vars['ST']['filemanage_view_rename'] ?>','iframe:index.php?archive=filemanage&action=renamedir&type=<?php echo $this->_tpl_vars['array'][$list]['type'] ?>&path=<?php echo $this->_tpl_vars['dirname'] ?>&dirname=<?php echo $this->_tpl_vars['array'][$list]['filename'] ?>&checkfrom=<?php echo $this->_tpl_vars['checkfrom'] ?>&fileinputid=<?php echo $this->_tpl_vars['fileinputid'] ?>&freshid='+Math.random(),'480px','200px','iframe');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_rename'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_rename'] ?></a></td>
						<?php } ?>
					</tr>
					<?php } ?>
					<?php if($this->_tpl_vars['array'][$list]['bottype']=='img'){ ?>
					<tr>
						<td><a class="setedit" href="<?php echo $this->_tpl_vars['url'] ?><?php echo $this->_tpl_vars['array'][$list]['filename'] ?>" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_botton'] ?>" hidefocus="true" rel="prettyPhoto[gallery1]" alt="<?php echo $this->_tpl_vars['dirname'] ?><?php echo $this->_tpl_vars['array'][$list]['filename'] ?>"><?php echo $this->_tpl_vars['ST']['filemanage_view_botton'] ?></a></td>
						<?php if($this->powercheck(0,124)==true ){ ?>
						<td class="padding-left3"><a class="setedit" onclick="javascript:windowsdig('<?php echo $this->_tpl_vars['array'][$list]['filename'] ?><?php echo $this->_tpl_vars['ST']['filemanage_view_edit'] ?>','iframe:index.php?archive=filemanage&action=imagecrop&type=<?php echo $this->_tpl_vars['array'][$list]['type'] ?>&path=<?php echo $this->_tpl_vars['dirname'] ?>&imgname=<?php echo $this->_tpl_vars['array'][$list]['filename'] ?>&freshid='+Math.random(),'<?php echo $this->_tpl_vars['array'][$list]['windowsW'] ?>px','<?php echo $this->_tpl_vars['array'][$list]['windowsH'] ?>px','iframe',true,true);" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_edit'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_edit'] ?></a></td>
						<?php } ?>
						<?php if($this->_tpl_vars['checkfrom']=='edit'){ ?>
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkimageinput('<?php echo $this->_tpl_vars['admin_path'] ?><?php echo $this->_tpl_vars['dirname'] ?><?php echo $this->_tpl_vars['array'][$list]['filename'] ?>','<?php echo $this->_tpl_vars['fileinputid'] ?>');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?></a></td>
						<?php } elseif(($this->_tpl_vars['checkfrom']=='input')){ ?>
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkinput('<?php echo $this->_tpl_vars['dirname'] ?><?php echo $this->_tpl_vars['array'][$list]['filename'] ?>','<?php echo $this->_tpl_vars['fileinputid'] ?>');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?></a></td>
						<?php } elseif(($this->_tpl_vars['checkfrom']=='function')){ ?>
						<td class="padding-left3"><a class="setedit" onclick="javascript:functionpic('<?php echo $this->_tpl_vars['dirname'] ?><?php echo $this->_tpl_vars['array'][$list]['filename'] ?>','<?php echo $this->_tpl_vars['fileinputid'] ?>');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?></a></td>
						<?php } ?>
					</tr>
					<?php } ?>
					<?php if($this->_tpl_vars['array'][$list]['bottype']=='text'){ ?>
					<tr>
						<?php if($this->_tpl_vars['checkfrom']=='edit'){ ?>
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkimageinput('<?php echo $this->_tpl_vars['admin_path'] ?><?php echo $this->_tpl_vars['dirname'] ?><?php echo $this->_tpl_vars['array'][$list]['filename'] ?>','<?php echo $this->_tpl_vars['fileinputid'] ?>');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?></a></td>
						<?php }else{ ?>
						<td class="padding-left3"><a class="setedit" onclick="javascript:checkinput('<?php echo $this->_tpl_vars['dirname'] ?><?php echo $this->_tpl_vars['array'][$list]['filename'] ?>','<?php echo $this->_tpl_vars['fileinputid'] ?>');" href="#body" title="<?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?>" hidefocus="true"><?php echo $this->_tpl_vars['ST']['filemanage_view_check'] ?></a></td>
						<?php } ?>
					</tr>
					<?php } ?>
				</table>
				<?php }else{ ?>
				<?php echo $this->_tpl_vars['ST']['filemanage_file_err'] ?>
				<?php } ?>
			</td>
		</tr>
	</table>
</div>
<?php }} ?>
<?php }else{ ?>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center"><?php echo $this->_tpl_vars['ST']['list_nothing_title'] ?></td>
		</tr>
	</table>
</div>
<?php } ?>
<script type="text/javascript" charset="utf-8">
	var checkfrom_var="<?php echo $this->_tpl_vars['checkfrom'] ?>";
	var inputname_var="<?php echo $this->_tpl_vars['fileinputid'] ?>";
	$(document).ready(function(){
		$(".gallery a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'fast',slideshow:10000,checkfrom:checkfrom_var,inputname:inputname_var});
	});
</script>